********************************************************************************
* "How Perpetrator Identity (Sometimes) Influences Media Framing Attacks as    *
* 	 “Terrorism” or “Mental Illness”                         				   *
* Allison Betus, Erin Kearns & Anthony Lemieux                                 *
* Communication Research, 2020							                       *
********************************************************************************

version 15

////////////////////////TABLE 1 - DESCRIPTIVE STATISTICS////////////////////////

*Dependent Variables
**use BetusKearnsLemieux.2020.CR.ReplicationMaterials.dta
tab Terror_binary
tab MentallyIll_binary

*Independent Variables by Article
**use BetusKearnsLemieux.2020.CR.ReplicationMaterials.dta
tab PerpMuslim 
tab PerpMuslim_dropUK
tab WellKnownGroup 
tab PerpMentallyIll_strict_NoUK 
tab PerpMentallyIll_loose_NoUK
tab PerpMentallyIll_strict_withUK
tab PerpMentallyIll_loose_withUK
sum numkilled, detail 
sum logwound, detail
tab WeaponBomb 
tab MultiplePerps
tab PerpWhite 
tab PerpWhite_dropUK
tab PerpUnknown 
tab TargetMinority 
tab TargetLEGVMTMil
tab doubtterr

*Independent Variables by Incident
**use Betus.Kearns.Lemieux.EventLevelData.dta
tab PerpMuslim 
tab PerpMuslim_dropUK
tab WellKnownGroup 
tab PerpMentallyIll_strict_NoUK 
tab PerpMentallyIll_loose_NoUK
tab PerpMentallyIll_strict_withUK
tab PerpMentallyIll_loose_withUK
sum numkilled, detail 
sum logwound, detail
tab WeaponBomb 
tab MultiplePerps
tab PerpWhite 
tab PerpWhite_dropUK
tab PerpUnknown 
tab TargetMinority 
tab TargetLEGVMTMil
	

/////////////////TABLE 2 - DOES THE ARTICLE REFERENCE TERRORISM?////////////////
**use Betus.Kearns.Lemieux.EventLevelData.dta
*MODEL 1 
logit Terror_binary PerpMuslim, cluster (eventid) or
	estat ic
*MODEL 2
logit Terror_binary PerpMuslim WellKnownGroup PerpMentallyIll_strict_NoUK ///
	numkilled, cluster (eventid) or
	estat ic
*MODEL 3
logit Terror_binary PerpMuslim WellKnownGroup PerpMentallyIll_loose_NoUK ///
	numkilled, cluster (eventid) or
	estat ic
*MODEL 4
logit Terror_binary PerpMuslim WellKnownGroup PerpMentallyIll_strict_NoUK ///
	numkilled WeaponBomb MultiplePerps PerpUnknown TargetMinority ///
	TargetLEGVMTMil, cluster (eventid) or
	estat ic	
*MODEL 5 
logit Terror_binary PerpMuslim WellKnownGroup PerpMentallyIll_loose_NoUK ///
	numkilled WeaponBomb MultiplePerps PerpUnknown TargetMinority ///
	TargetLEGVMTMil, cluster (eventid) or
	estat ic
	
	
//////////////TABLE 3 - DOES THE ARTICLE REFERENCE MENTAL ILLNESS?//////////////
**use Betus.Kearns.Lemieux.EventLevelData.dta
*MODEL 6 
logit MentallyIll_binary PerpWhite, cluster (eventid) or
	estat ic	
*MODEL 7
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_strict_NoUK, cluster (eventid) or
	estat ic
*MODEL 8 
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_loose_NoUK, cluster (eventid) or
	estat ic	
*MODEL 9 
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_strict_withUK, cluster (eventid) or
	estat ic
*MODEL 10
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_loose_withUK, cluster (eventid) or
	estat ic
*MODEL 11
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_strict_NoUK numkilled MultiplePerps PerpUnknown, ///
	cluster (eventid) or
	estat ic
*MODEL 12 
logit MentallyIll_binary PerpWhite WellKnownGroup PerpMentallyIll_loose_NoUK ///
	numkilled MultiplePerps PerpUnknown, cluster (eventid) or
	estat ic
*MODEL 13
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_strict_withUK numkilled MultiplePerps PerpUnknown, ///
	cluster (eventid) or
	estat ic
*MODEL 14 
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_loose_withUK numkilled MultiplePerps PerpUnknown, ///
	cluster (eventid) or
	estat ic


************************************APPENDIX************************************	

//////////////////////////TABLE A2 - CORRELATION MATRIX/////////////////////////
**use Betus.Kearns.Lemieux.EventLevelData.dta
tetrachoric Terror_binary MentallyIll_binary
corr PerpMuslim WellKnownGroup PerpMentallyIll_strict_NoUK numkilled ///
	WeaponBomb MultiplePerps TargetMinority TargetLEGVMTMil
corr PerpWhite WellKnownGroup PerpMentallyIll_strict_NoUK numkilled ///
	WeaponBomb MultiplePerps TargetMinority TargetLEGVMTMil
tetrachoric Terror_binary MentallyIll_binary PerpMuslim PerpWhite ///
	WellKnownGroup PerpMentallyIll_strict_withUK  WeaponBomb MultiplePerps ///
	TargetMinority TargetLEGVMTMil PerpUnknown
polychoric numkilled Terror_binary MentallyIll_binary PerpMuslim PerpWhite ///
	WellKnownGroup PerpMentallyIll_strict_withUK  WeaponBomb MultiplePerps ///
	TargetMinority TargetLEGVMTMil PerpUnknown


//////////TABLE A3 - Does the Article Reference Terrorism when all GTD////////// 
///////////////////////////Terrorism Criteria are Met?//////////////////////////
**use Betus.Kearns.Lemieux.EventLevelData.dta	
*Model A1
logit Terror_binary PerpMuslim if doubtterr==0, cluster (eventid) or
*Model A2
logit Terror_binary PerpMuslim WellKnownGroup PerpMentallyIll_strict_NoUK ///
	numkilled if doubtterr==0, cluster (eventid) or
*Model A3
logit Terror_binary PerpMuslim WellKnownGroup PerpMentallyIll_loose_NoUK ///
	numkilled if doubtterr==0, cluster (eventid) or
*Model A4
logit Terror_binary PerpMuslim WellKnownGroup PerpMentallyIll_strict_NoUK ///
	numkilled WeaponBomb MultiplePerps PerpUnknown TargetMinority ///
	TargetLEGVMTMil if doubtterr==0, cluster (eventid) or
*Model A5
logit Terror_binary PerpMuslim WellKnownGroup PerpMentallyIll_loose_NoUK ///
	numkilled WeaponBomb MultiplePerps PerpUnknown TargetMinority ///
	TargetLEGVMTMil if doubtterr==0, cluster (eventid) or	
		
		
////////////TABLE A4 - Does the Article Reference Mental Illness when/////////// 
///////////////////////all GTD Terrorism Criteria are Met?//////////////////////
**use Betus.Kearns.Lemieux.EventLevelData.dta	
*Model A6
logit MentallyIll_binary PerpWhite if doubtterr==0, cluster (eventid) or	
*Model A7
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_strict_NoUK if doubtterr==0, cluster (eventid) or
*Model A8
logit MentallyIll_binary PerpWhite WellKnownGroup PerpMentallyIll_loose_NoUK ///
	if doubtterr==0, cluster (eventid) or
*Model A9
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_strict_withUK if doubtterr==0, cluster (eventid) or
*Model A10
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_loose_withUK if doubtterr==0, cluster (eventid) or
*Model A11
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_strict_NoUK numkilled MultiplePerps PerpUnknown if ///
	doubtterr==0, cluster (eventid) or
*Model A12
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_loose_NoUK numkilled MultiplePerps PerpUnknown if ///
	doubtterr==0, cluster (eventid) or
*Model A13
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_strict_withUK numkilled MultiplePerps PerpUnknown if ///
	doubtterr==0, cluster (eventid) or
*Model A14
logit MentallyIll_binary PerpWhite WellKnownGroup ///
	PerpMentallyIll_loose_withUK numkilled MultiplePerps PerpUnknown if ///
	doubtterr==0, cluster (eventid) or
